package com.lovo.middleman.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lovo.middleman.bean.DetailedBean;
import com.lovo.middleman.mapper.DetailedMapper;
import com.lovo.middleman.service.IDetailedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DetailedServiceImpl extends ServiceImpl<DetailedMapper, DetailedBean> implements IDetailedService {

    @Autowired
    DetailedMapper detailedMapper;


    @Override
    public List<DetailedBean> queryDetailedBeanByBuyId(int buyId) {

        QueryWrapper<DetailedBean> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("buy_id",buyId);
        return detailedMapper.selectList(queryWrapper);
    }
}
